﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PosClient.Helper
{
    public class RedisKey
    {
        /// <summary>
        /// 商品主体信息
        /// </summary>
        /// <returns></returns>
        public static string Redis_Plu_Main
        {
            get => $"Pos:{Globals.StoreCode}:Plu:Main";
        }

        /// <summary>
        /// 商品多条码
        /// </summary>
        /// <returns></returns>
        public static string Redis_Plu_Barcode
        {
            get => $"Pos:{Globals.StoreCode}:Plu:Barcode";
        }

        /// <summary>
        /// 削价码
        /// </summary>
        public static string Redis_Plu_Discount
        {
            get => $"Pos:{Globals.StoreCode}:Plu:Discount";
        }

        /// <summary>
        /// 基础数据
        /// </summary>
        /// <returns></returns>
        public static string Redis_Base
        {
            get => $"Pos:{Globals.StoreCode}:Base";
        }

        /// <summary>
        /// 支付方式列表
        /// </summary>
        /// <returns></returns>
        public static string Redis_Pay
        {
            get => $"Pos:{Globals.StoreCode}:Pay";
        }

        /// <summary>
        /// 购物车缓存
        /// </summary>
        public static string Redis_Cart
        {
            get => $"Pos:{Globals.StoreCode}:Cart";
        }

        /// <summary>
        /// 会员缓存
        /// </summary>
        public static string Redis_Vip
        {
            get => $"Pos:{Globals.StoreCode}:Vip";
        }

        public static string Redis_Job
        {
            get => $"Pos:{Globals.StoreCode}:Job";
        }

        public static string Redis_VipLevel
        {
            get => $"Pos:{Globals.StoreCode}:VipLevel";
        }

        public static string Redis_Keyboard
        {
            get => $"Pos:{Globals.StoreCode}:Keyboard";
        }
    }
}
